﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;

namespace Inspired.Euler
{
    public static class Problem020
    {
        public static void Main()
        {
            Console.WriteLine(
                100.Factorial()
                    .ToString().ToCharArray()
                    .Aggregate(0, (accum, item) =>
                        accum += (int)Char.GetNumericValue(item)));
        }
    }
}
